package com.ssy.lingxi.purchase.api.enums.notice;


import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 采购公示类型 - enum
 * @author fhj
 * @date 2021/05/26
 * @version 2.0.0
 */
public enum PurchaseNoticeTypeEnum {

    ENQUIRY(1, "询价"),
    INVITE_TENDER(2, "招标"),
    BIDDING(3, "竞价");

    private final int code;
    private final String message;

    PurchaseNoticeTypeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.code);
    }
}
